//
// Created by ziya on 22-8-23.
//
#include "../include/common.h"

#include <stdarg.h>

static char buf[1024] = {0};

int print(char* format, ...) {
    int ret = 0;

    va_list aptr;

    va_start(aptr, format);
    ret = vsprintf(buf, format, aptr);
    va_end(aptr);

    write(STDOUT_FILENO, buf, ret);

    return ret;
}